package main

import (
	"fmt"
	"net/http"
)

func main() {
	http.HandleFunc("/test1", test1)
	err :=http.ListenAndServeTLS(":9090","./14单项认证/cert.crt","./14单项认证/rsa_private.key",nil);
	//err := http.ListenAndServe(":9090", nil)
	if err != nil {
		fmt.Printf("http server failed, err:%v\n", err)
		return
	}
}

func test1(w http.ResponseWriter,r *http.Request)  {
	w.Write([]byte("欢迎访问！test1"))
}
